<div class="form recommenderForm">

<h2>Tu perfil</h2>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'lowercasemodelname-form', //not technically required but works w gii generated controllers
	'enableAjaxValidation'=>true //turn on ajax validation on the client side
));

?>
 
    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->radioButtonList($model, 'gender',
                    array(  'M' => 'Hombre',
                            'F' => 'Mujer',
                    ), array(
					'labelOptions'=>array('style'=>'display:inline'), // add this code
					'separator'=>'&nbsp;&nbsp;',));
		?>
		<?php echo $form->error($model, 'gender'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model,'age'); ?>
        <?php echo $form->textField($model,'age', array('size'=>3)) ?>
		<?php echo $form->error($model, 'age'); ?>
    </div>
 
    <div class="row">
        <?php echo $form->label($model,'weight'); ?>
        <?php echo $form->textField($model,'weight', array('size'=>3)); ?>
  		<?php echo $form->error($model, 'weight'); ?>
    </div>

    <div class="row">
        <?php echo $form->label($model,'height'); ?>
        <?php echo $form->textField($model,'height', array('size'=>3)) ?>
        <?php echo $form->error($model, 'height'); ?>
    </div>
 
	<div class="row">
        <?php echo $form->label($model,'state'); ?>
		<?php echo $form->dropDownList($model,'state', $model->getStatesDict(), 
					array('options' => array('1'=>array('selected'=>true))));?>
		<?php echo $form->error($model, 'state'); ?>
	</div>
 
	<div class="row">
        <?php echo $form->label($model,'interest'); ?>
		<?php echo $form->dropDownList($model,'interest', $model->getInterestDict(), 
					array('options' => array('1'=>array('selected'=>true))));?>
		<?php echo $form->error($model, 'interest'); ?>
	</div>

	<div class="row">
	<?php echo CHtml::ajaxSubmitButton("Update data",
							  CController::createUrl('recommender/sportRanking'), 
							  array('update' => '#sports'));
							  
	?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->


